﻿<UserControl x:Class="GSF.TimeSeries.Transport.UI.UserControls.SelfSignedCertificateGenerator"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d"
             x:Name="SelfSignedCertificateGeneratorUserControl">

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/GSF.TimeSeries.UI.WPF;Component/Resources/CommonResource.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>

    <StackPanel DataContext="{Binding ElementName=SelfSignedCertificateGeneratorUserControl}" Orientation="Horizontal">
        <Label Content="CN (common name)" />
        <TextBox Text="{Binding Mode=TwoWay, Path=CommonName}" />
        <Button Height="25" Content="Generate..." Command="{Binding GenerateButtonCommand}" />
    </StackPanel>
</UserControl>
